<?php

require_once('lib/Check.php');
require_once('lib/MixiAppliAPI.php');

$api = new MixiAppliAPI(array_merge($_GET, $_POST));

$api->validate_params(array(
));

$check_list  = Check::get_list($api->viewer_id);
$check_count = Check::get_count($api->viewer_id);

if ($check_list === FALSE)
    $api->set_error('could not get list');
if ($check_count === FALSE)
    $api->set_error('could not get count');

$api->set_result(array(
    'list'  => $check_list,
    'count' => $check_count
));

?>
